#ifndef HSVWIDGET_H
#define HSVWIDGET_H

#include <QtGui/QWidget>

#include "hsvcolor.h"

namespace Ui {
    class HSVWidget;
}

class HSVWidget : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(HSVWidget)
public:
    explicit HSVWidget(QWidget *parent = 0);
    virtual ~HSVWidget();

public slots:
    void setColor(HSVColor color, bool omitrange = false);
    void updateColor();

signals:
    void colorChanged(HSVColor color);

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::HSVWidget *m_ui;
};

#endif // HSVWIDGET_H
